package com.sniper.web.shiro.scheduler;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;

/**
 * 任务监听
 * Created by suzhen on 2017/3/16.
 */
public class MyJobListener implements JobListener {


    @Override
    public String getName() {
        return null;
    }

    /**
     * 任务即将被执行
     * @param context
     */
    @Override
    public void jobToBeExecuted(JobExecutionContext context) {

    }

    /**
     * 任务即将被否决
     * @param context
     */
    @Override
    public void jobExecutionVetoed(JobExecutionContext context) {

    }

    /**
     * 任务在被执行
     * @param context
     * @param jobException
     */
    @Override
    public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {

    }
}
